<template>
	<view>
		<view class="header">
			<u-navbar title="订单填写" back-icon-size='44' :background="background" title-color="#FFFFFF"
				:border-bottom='false' back-icon-color='#FFFFFF'>
				<view slot='right' style="padding-right: 28rpx;color: #FFFFFF;">
					退改说明
				</view>
			</u-navbar>
			<view class="infoBox">
				<view class="start">
					<view class="date">
						01月29日 周五
					</view>
					<view class="time">
						11:00
					</view>
					<view class="station">
						深圳东站
					</view>
				</view>
				<view class="checi">
					<view class="num">
						K502
					</view>
					<view class="cheinfo">
						<text>经停信息</text>
					</view>
				</view>
				<view class="end">
					<view class="date">
						01月29日 周五
					</view>
					<view class="time">
						12:50
					</view>
					<view class="station">
						常德站
					</view>
				</view>
			</view>
			<view class="line"></view>
			<view class="seat">
				硬座 ¥123.5
			</view>
		</view>
		<view class="container">
			<view class="passer">
				<view class="passer-ul">
					<view class="passer-li">
						<view class="del">
							<u-icon name="minus-circle" color="#FB4F4B" size="36"></u-icon>
						</view>
						<view class="peoInfo">
							<view class="name">
								<view class="name-tit">
									小桌子
								</view>
								<view class="type">
									成人票
								</view>
							</view>
							<view class="idnum">
								二代身份证 123568 ******** 2356
							</view>
						</view>
					</view>
				</view>
				<view class="addpasser" @click="navTo('./selPass')">
					<u-icon name="plus-circle" color="#3587F7" size="36"></u-icon>添加乘客(成人、学生、儿童）
				</view>
			</view>
			
			
			<view class="inputBox">
				<view class="label">
					手机号码
				</view>
				<view class="input">
					<text>＋86</text>
					<input type="text" value="" placeholder="135 **** 5698" />
				</view>
				<view class="right">
					<image src="../../../static/imgs/txl.png" mode=""></image>
				</view>
			</view>
			
			<view class="insur">
				<view class="label">
					退改更安心，出行更放心
				</view>
				<view class="checkBox">
					<view class="left">
						<text class="tit">安心退改权益</text>
						<text class="tit1">最高返现100%退改手续费</text>
					</view>
					<view class="right">
						<text>¥9.2/份</text>
						<u-checkbox v-model="checked" shape="circle"></u-checkbox>
					</view>
				</view>
			</view>
			
		</view>
		
		<view class="payment">
			<view class="left">
				<view class="text">
					订单总额
				</view>
				<view class="price">
					<text style="font-weight: normal;font-size: 28rpx;">¥</text>569
				</view>
				<view class="tool" @click="showMask=true">
					<u-icon name="arrow-up" color="#999999" size="28"></u-icon>
				</view>
			</view>
			<view class="next" @click="navTo('./orderSuccess')">
				立即预定
			</view>
		</view>
		
		
		<u-popup v-model="showMask" mode="bottom" closeable border-radius="16">
			<view class="detailBox">
				<view class="title">
					价格明细
				</view>
				<view class="detail-item">
					<view class="left">
						火车票
					</view>
					<view class="right">
						¥569 x1
					</view>
				</view>

			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				showMask:false,
				checked:false,
				background: {
					backgroundColor: 'rgba(255,255,255,0)'
				}
			}
		},
		methods: {
			navTo(url) {
				uni.navigateTo({
					url: url
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.header {
		width: 100%;
		height: 606rpx;
		background: linear-gradient(180deg, #3DA4FE 0%, #3587F7 74%, rgba(45, 123, 247, 0) 100%);
		
		.infoBox {
			padding: 0 28rpx;
			display: flex;
			justify-content: space-between;
			margin-top: 10rpx;
			.start,
			.checi,
			.end {
				display: flex;
				flex-direction: column;
				align-items: center;
				color: #FFFFFF;

				.date {
					font-size: 24rpx;
					font-family: Alibaba Sans;
					font-weight: 400;
				}

				.time {
					font-size: 40rpx;
					font-family: Alibaba Sans;
					font-weight: bold;
					margin-top: 8rpx;
					margin-bottom: 8rpx;
				}

				.station {
					font-size: 28rpx;
					font-family: Segoe UI;
					font-weight: 400;
				}

				.num {
					padding-top: 20rpx;
				}

				.cheinfo {
					margin-top: 8rpx;
					border-radius: 40rpx;
					font-size: 24rpx;
					font-family: Segoe UI;
					font-weight: 400;
					color: #FFFFFF;
					display: flex;
					align-items: center;

					text {
						display: inline-block;
						width: 128rpx;
						height: 36rpx;
						border: 2rpx solid #FFFFFF;
						border-radius: 40rpx;
						text-align: center;
					}

					&:before {
						content: " ";
						display: inline-block;
						width: 32rpx;
						height: 2rpx;
						background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, #FFFFFF 100%);
						border-radius: 4rpx;
					}

					&:after {
						content: " ";
						display: inline-block;
						width: 32rpx;
						height: 2rpx;
						background: linear-gradient(90deg, #FFFFFF 0, rgba(255, 255, 255, 0.02) 100%);
						border-radius: 4rpx;
					}
				}
			}
		}
	
		.line {
			width: 694rpx;
			height: 0rpx;
			border: 2rpx dotted rgba(255, 255, 255, 0.23137254901960783);
			margin: 30rpx auto;
		}
		.seat {
			width: 100%;
			padding-left: 28rpx;
			font-size: 28rpx;
			font-family: Segoe UI;
			font-weight: 400;
			color: #FFFFFF;
		}
	}

	.container {
		width: 694rpx;
		height: auto;
		margin: -254rpx auto 0;
		.passer {
			margin-top: 20rpx;
			width: 100%;
			height: auto;
			background-color: #FFFFFF;
			border-radius: 16rpx;
			overflow: hidden;
			.passer-ul {
				padding: 0 20rpx;
				.passer-li {
					width: 100%;
					height: 140rpx;
					display: flex;
					align-items: center;
					border-bottom: 2rpx solid #F2F2F7;
					.peoInfo {
						margin-left: 12rpx;
						.name {
							display: flex;
							align-items: center;
							.name-tit {
								font-size: 32rpx;
								font-family: Segoe UI;
								font-weight: bold;
								color: #333333;
							}
							.type {
								margin-left: 10rpx;
								width: fit-content;
								height: 38rpx;
								background: #FFFFFF;
								border: 2rpx solid #D0D2D5;
								border-radius: 4rpx;
								font-size: 20rpx;
								font-family: Segoe UI;
								font-weight: 400;
								color: #999999;
								text-align: center;
								padding: 0 10rpx;
							}
						}
						.idnum {
							margin-top: 6rpx;
							font-size: 24rpx;
							font-family: Segoe UI;
							font-weight: 400;
							color: #999999;
						}
					}
				}
			}
			.addpasser {
				width: 694rpx;
				height: 100rpx;
				background: #FFFFFF;
				border-radius: 16rpx;
				text-align: center;
				line-height: 100rpx;
				font-size: 32rpx;
				font-family: Segoe UI;
				font-weight: 400;
				color: #3587F7;
			}
		}
	
		.inputBox {
			margin: 20rpx auto 0;
			width: 694rpx;
			height: 100rpx;
			background: #FFFFFF;
			border-radius: 16rpx;
			display: flex;
			align-items: center;
			padding: 0 20rpx;
			.label {
				font-size: 32rpx;
				font-family: Segoe UI;
				font-weight: bold;
				line-height: 19px;
				color: #333333;
			}
			.input {
				margin-left: 26rpx;
				display: flex;
				align-items: center;
				text {
					font-size: 28rpx;
					font-family: Segoe UI;
					font-weight: 400;
					color: #333333;
				}
				input {
					font-size: 28rpx;
					font-family: Segoe UI;
					font-weight: 400;
					color: #333333;
					text-indent: 10rpx;
				}
			}
			.right {
				margin-left: auto;
				image {
					width: 36rpx;
					height: 36rpx;
					vertical-align: middle;
				}
			}
		}
	
		.insur {
			margin-top: 20rpx;
			width: 100%;
			height: 208rpx;
			background: #FFFFFF;
			border-radius: 16rpx;
			.label {
				width: 100%;
				height: 88rpx;
				@include bgi('../../../static/imgs/lvyioubx.png');
				font-size: 28rpx;
				font-family: Segoe UI;
				font-weight: 400;
				color: #F57426;
				line-height: 70rpx;
				padding-left: 50rpx;
			}
			.checkBox {
				width: 100%;
				height: 120rpx;
				display: flex;
				align-items: center;
				padding: 0 20rpx;
				justify-content: space-between;
				.left {
					display: flex;
					flex-direction: column;
					.tit {
						font-size: 28rpx;
						font-family: Segoe UI;
						font-weight: bold;
						color: #333333;
						margin-bottom: 6rpx;
					}
					.tit1 {
						font-size: 24rpx;
						font-family: Segoe UI;
						font-weight: 400;
						color: #999999;
					}
				}
				.right {
					text {
						font-size: 24rpx;
						font-family: Segoe UI;
						font-weight: 400;
						color: #333333;
						margin-right: 10rpx;
					}
				}
			}
		}
		
	}
	
	.payment {
		width: 100%;
		height: 112rpx;
		background: #FFFFFF;
		position: fixed;
		bottom: 0;
		display: flex;
		align-items: center;
		padding: 0 28rpx;
		z-index: 1000;
		.left {
			display: flex;
			align-items: center;
			.text {
				font-size: 28rpx;
				font-family: Segoe UI;
				font-weight: 400;
				color: #333333;
			}
			.price {
				margin-left: 8rpx;
				font-size: 44rpx;
				font-family: Segoe UI;
				font-weight: bold;
				color: #F57426;
			}
			.tool {
				margin-left: 8rpx;
			}
		}
		.next {
			width: 400rpx;
			height: 80rpx;
			background: linear-gradient(180deg, #FEA837 0%, #FF7700 100%);
			border-radius: 8rpx;
			font-size: 32rpx;
			font-family: Segoe UI;
			font-weight: 400;
			line-height: 80rpx;
			color: #FFFFFF;
			text-align: center;
			margin-left: auto;
		}
	}
	
	.detailBox {
		padding: 0 28rpx;
		.title {
			width: 100%;
			height: 88rpx;
			font-size: 32rpx;
			font-family: Segoe UI;
			font-weight: bold;
			color: #333333;
			line-height: 88rpx;
		}
		.detail-item {
			width: 100%;
			height: 88rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.left {
				font-size: 28rpx;
				font-family: Segoe UI;
				font-weight: 400;
				color: #333333;
			}
			.right {
				font-size: 28rpx;
				font-family: Segoe UI;
				font-weight: 400;
				color: #F57426;
			}
		}
	}
	
	
	/deep/ .u-checkbox__label {
		margin-right: 0rpx !important;
	}
</style>
